package com.asiainfo.wx.api.apibase.constants;

/**
 * Copyright: Copyright (c) 2019  zteits
 *
 * @ClassName: com.asiainfo.wx.api.apibase.constants
 * @Description:
 * @version: v1.0.0
 * @author: atao
 * @date: 2019-10-29   17:10
 * Modification History:
 * Date         Author          Version      Description
 * ---------------------------------------------------------*
 * 2019-10-29      atao          v1.0.0          创建
 */
public enum WxResultEnum {

    /**
     * 成功
     */
    SUCCESS("8888", "请求成功"),

    PARAM_NULL("1001", "参数为空"),

    PARAM_ILLEGAL("1002", "参数不合法"),
    /**
     * 用于内部业务处理异常
     */
    BIZ_FAIL("7777", "业务异常"),
    /**
     * 用于调用第三方服务发生的异常，如调用dubbo、或者远程http接口异常
     */
    APP_FAIL("9999", "应用异常");

    WxResultEnum(String code, String defaultMsg) {
        this.code = code;
        this.defaultMsg = defaultMsg;
    }

    /**
     * 响应编码
     */
    private String code;

    /**
     * 默认响应信息
     */
    private String defaultMsg;

    public String getCode() {
        return code;
    }

    public String getDefaultMsg() {
        return defaultMsg;
    }}
